.class Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView$b;
.super Landroidx/viewpager/widget/PagerAdapter;
.source "PremiumBannerView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "b"
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView$b;->a:Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;

    invoke-direct {p0}, Landroidx/viewpager/widget/PagerAdapter;-><init>()V

    return-void
.end method


# virtual methods
.method public destroyItem(Landroid/view/ViewGroup;ILjava/lang/Object;)V
    .locals 0
    .param p1    # Landroid/view/ViewGroup;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p3    # Ljava/lang/Object;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    instance-of p2, p3, Landroid/view/View;

    if-eqz p2, :cond_0

    .line 2
    check-cast p3, Landroid/view/View;

    invoke-virtual {p1, p3}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    :cond_0
    return-void
.end method

.method public getCount()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView$b;->a:Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;->b(Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public instantiateItem(Landroid/view/ViewGroup;I)Ljava/lang/Object;
    .locals 7
    .param p1    # Landroid/view/ViewGroup;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView$b;->a:Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const/4 v1, 0x0

    const v2, 0x7f0c018b

    invoke-virtual {v0, v2, p1, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    const v2, 0x7f090bb1

    .line 2
    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    const v3, 0x7f0902a1

    .line 3
    invoke-virtual {v0, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    const v4, 0x7f0902a0

    .line 4
    invoke-virtual {v0, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    const v5, 0x7f090916

    .line 5
    invoke-virtual {v0, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/ImageView;

    .line 6
    iget-object v6, p0, Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView$b;->a:Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;

    invoke-static {v6}, Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;->b(Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;)Ljava/util/List;

    move-result-object v6

    invoke-interface {v6, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView$c;

    .line 7
    iget v6, p2, Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView$c;->b:I

    invoke-virtual {v2, v6}, Landroid/widget/TextView;->setText(I)V

    .line 8
    iget-object v6, p0, Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView$b;->a:Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;

    invoke-static {v6}, Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;->c(Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;)I

    move-result v6

    invoke-virtual {v2, v6}, Landroid/widget/TextView;->setTextColor(I)V

    .line 9
    iget v2, p2, Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView$c;->a:I

    invoke-virtual {v5, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 10
    iget-object v2, p0, Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView$b;->a:Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;

    invoke-static {v2}, Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;->d(Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;)Z

    move-result v2

    const/16 v5, 0x8

    if-eqz v2, :cond_2

    .line 11
    invoke-static {}, Lcom/estrongs/android/pop/utils/t;->a()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 12
    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0

    .line 13
    :cond_0
    invoke-virtual {v4, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 14
    iget v2, p2, Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView$c;->c:I

    invoke-virtual {v4, v2}, Landroid/widget/TextView;->setText(I)V

    .line 15
    iget-object v2, p0, Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView$b;->a:Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;

    invoke-static {v2}, Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;->e(Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;)I

    move-result v2

    invoke-virtual {v4, v2}, Landroid/widget/TextView;->setTextColor(I)V

    .line 16
    :goto_0
    invoke-virtual {v3, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 17
    iget-object v1, p0, Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView$b;->a:Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;->f(Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;)I

    move-result v1

    invoke-virtual {v3, v1}, Landroid/widget/TextView;->setTextColor(I)V

    .line 18
    iget-object v1, p0, Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView$b;->a:Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;

    invoke-virtual {v1}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    iget v2, p2, Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView$c;->b:I

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 19
    iget-boolean p2, p2, Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView$c;->d:Z

    if-eqz p2, :cond_1

    .line 20
    new-instance p2, Landroid/text/SpannableString;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v1, "   "

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {p2, v1}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V

    .line 21
    new-instance v1, Lcom/estrongs/android/pop/app/premium/newui/o;

    iget-object v2, p0, Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView$b;->a:Lcom/estrongs/android/pop/app/premium/newui/PremiumBannerView;

    invoke-virtual {v2}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v2

    const v4, 0x7f0803be

    invoke-direct {v1, v2, v4}, Lcom/estrongs/android/pop/app/premium/newui/o;-><init>(Landroid/content/Context;I)V

    .line 22
    invoke-virtual {p2}, Landroid/text/SpannableString;->length()I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    invoke-virtual {p2}, Landroid/text/SpannableString;->length()I

    move-result v4

    const/16 v5, 0x21

    .line 23
    invoke-virtual {p2, v1, v2, v4, v5}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    move-object v1, p2

    .line 24
    :cond_1
    invoke-virtual {v3, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    .line 25
    :cond_2
    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setVisibility(I)V

    .line 26
    invoke-virtual {v3, v5}, Landroid/widget/TextView;->setVisibility(I)V

    .line 27
    :goto_1
    invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    return-object v0
.end method

.method public isViewFromObject(Landroid/view/View;Ljava/lang/Object;)Z
    .locals 0
    .param p1    # Landroid/view/View;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Ljava/lang/Object;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    if-ne p1, p2, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method
